fix a crash when BluetoothDevice extra in broadcasted intent is null