fix MongoException com.mongodb.MongoException: not talking to master and retries used up> not talking to master and retries used up bug