Make mongo.find_primary resilient when no primary exists