wlan: LIM: check add to null check dereference

Add code to check null dereference check.

Change-Id: I339f3aa9014b013f939179f22ed1650e8c3d6aed
Crs-Fixed: 667938