[Bluetooth] fix BluetoothAdapter.stopDiscovery()

The correct fix for issue https://crosswalk-project.org/jira/browse/XWALK-84, will be in another PR. These are just minor fixes for problems discovered while fixing that issue.