qcacld-3.0: validate the green_ap_ctx before accessing it
qcacld-2.0 to qcacld-3.0 propagation
The green_ap_ctx is not checked for NULL pointer before accessing
it. This is leading to crash in FTM mode as green_ap_ctx is not
initialized.
CRs-Fixed: 1074982
Change-Id: I6b3cea999bfb44cfb6fa56aece6b423e638bfaa7