Handle _id-only upserts for MongoDB 2.6 and older versions (#741)

See: https://jira.mongodb.org/browse/SERVER-12266
Regression test so that upserts never replace document data