qcacmn: Fix kw issue in target_if_nan_register_events

Potential NULL pointer dereference of handle in
target_if_nan_register_events.

Add null check in the function.

Change-Id: I1fc57d712713bc47345b178c972cc5fc926a42d0
CRs-Fixed: 2317017
1 file changed