Fixed PHP-829: Segfault when a Replicaset doesn't have a passive server
Merged Pull Request #457

* pull-request/457:
  Fixed PHP-829: Segfault when a Replicaset doesn't have a passive server