Refactoring MONGO_METHOD calls in mongoclient.c and mongo.c

https://jira.mongodb.org/browse/PHP-820 and related sub-tasks
Are you sure you don't have to check link != NULL as well? In any case, I'd use ```if (link->servers != NULL)``` as it's more descriptive.