isScheduledForUpsert fix for MongoDB (will not work with Doctrine ORM)