Fix Connection::isConnected() for driver versions 1.5.0+

Addresses concerns originally raised in #186.