Bluetooth:GAP: Add NULL check before accessing accept socket

Add NULL check before accessing accept_rs variable to
avoid null pointer exception while referring to invalid
memory.

Change-Id: Ibc38d1c2fb19eb171cf136c47248ad8828676ac1
Merge "Bluetooth:GAP: Add NULL check before accessing accept socket"
auto-merger: merge in from aosp/master