Fixed PHP-1111: MongoClient constructor crashes on connection to slave.

https://jira.mongodb.org/browse/PHP-1111
Interesting. I had no idea.