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
Merge remote-tracking branch 'upstream/v1.5'

* upstream/v1.5:
  Fixed PHP-1088: CID-10700: Explicit null dereferenced