Merged Pull Request #457

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

* v1.4:
  Merged Pull Request #457