Check whether we have an empty BSON result before processing upsertedIds
Check whether we have an empty BSON result before processing upsertedIds

mongodb-labs/mongo-hhvm-driver-prototype,mongodb/mongo-hhvm-driver,mongodb/mongo-hhvm-driver,mongodb/mongo-hhvm-driver,jmikola/mongo-hhvm-driver-prototype,jmikola/mongo-hhvm-driver,10gen-labs/mongo-hhvm-driver-prototype,mongodb-labs/mongo-hhvm-driver,mongodb-labs/mongo-hhvm-driver,jmikola/mongo-hhvm-driver-prototype,mongodb-labs/mongo-hhvm-driver,10gen-labs/mongo-hhvm-driver-prototype,mongodb-labs/mongo-hhvm-driver,mongodb-labs/mongo-hhvm-driver-prototype,mongodb-labs/mongo-hhvm-driver-prototype,jmikola/mongo-hhvm-driver-prototype,jmikola/mongo-hhvm-driver,jmikola/mongo-hhvm-driver,mongodb/mongo-hhvm-driver,mongodb-labs/mongo-hhvm-driver-prototype,jmikola/mongo-hhvm-driver,jmikola/mongo-hhvm-driver-prototype,10gen-labs/mongo-hhvm-driver-prototype,10gen-labs/mongo-hhvm-driver-prototype