Make check for established connection more robust

The check for a Bluetooth connection must now succeed multiple times in a
row in order to be regarded reliable.