Fix AssertionError in MongoClient.alive(), PYTHON-594.