Bluetooth - Fix devicename being opened on retry

This patch fixes the device name that was being opened in case first
try failed. Till now if first try failed for some reason, retry was
also done on NULL device, which also failed evertytime.

Change-Id: I4a9c2e07675ab23623605dc6f9416393b9208faa
CRs-Fixed: 506011