Session was invalid which was causing the pointer dereferencing.

Session was invalid which was causing the pointer dereferencing
and eventually crash, to avoid this situation we will now
validate the session id and then proceed further

CRs-fixed: 511324
wlan : Revision 3.2.3.19

wlan : Revision 3.2.3.19