Check if BLE is enabled before using it

Change-Id: I48a47d86200ff912cb529ad28d000142914c6c0b