Fixed PHP-653: is_master() failing with mongodb <= 1.8.3

Tested with 1.8.3 amazingly enough, seems to be working fine
Merge branch 'PHP-653-1.8compatability'