Handle identifier-only upserts for MongoDB 2.6+ and earlier versions