Switch isConnected() to use connected property in mongodb connection context object

Update of mongodb causes incompatibility issues. Switched call to use 'connected' property.