PHP-1280: segfault when no authentication details are provided with MongoDB 2.8

Not all mechanisms require a password.