Fix for the crash in wlan_hdd_tdls_check_bmps

Check whether pHddTdlsCtx is NULL or not before accessing it.

CRs-Fixed: 464597
Change-Id: Id9cc7c2242411189746655f5daf564926f143df0
diff --git a/CORE/HDD/src/wlan_hdd_tdls.c b/CORE/HDD/src/wlan_hdd_tdls.c
index eda8a8a..bf69952 100644
--- a/CORE/HDD/src/wlan_hdd_tdls.c
+++ b/CORE/HDD/src/wlan_hdd_tdls.c
@@ -1314,7 +1314,7 @@
     hdd_context_t *pHddCtx = WLAN_HDD_GET_CTX(pAdapter);
     tdlsCtx_t *pHddTdlsCtx = WLAN_HDD_GET_TDLS_CTX_PTR(pAdapter);
 
-    if (NULL == pHddCtx) return;
+    if ((NULL == pHddCtx) || (NULL == pHddTdlsCtx)) return;
 
     if ((0 == pHddCtx->connected_peer_count) &&
         (0 == pHddTdlsCtx->discovery_sent_cnt))