Fixed PHP-1088: CID-10700: Explicit null dereferenced
Merge pull request #693 from bjori/PHP-1088-gridfs-coverity

Fixed PHP-1088: CID-10700: Explicit null dereferenced

* bjori/PHP-1088-gridfs-coverity:
  Fixed PHP-1088: CID-10700: Explicit null dereferenced
Fixed PHP-1090: Dereference null return value

Fixes several coverity issues around php_mongo_runcommand() retval changes
that was introduced by the fix for PHP-1036 (1831821f69d87f2ea0b7f0eb16ca8a750d4ecc85)
Merge pull request #692 from bjori/coverity-runcommand

Fixed several coverity issues around php_mongo_runcommand() retval changes

* bjori/coverity-runcommand:
  Fixed PHP-1090: Dereference null return value
Fixed PHP-1086: Inserting documents with WriteConcern during failover broken

This is already covered by tests/replicaset-failover/mongocollection-insert-001.phpt
But as the failover testscases are so slow we only run them on Jenkins which is
why this wasn't discovered earlier

We don't actually support w=-1 (ignore socket errors) so we do want to throw exception
here in all cases