Fixes MongoConnector not ensuring document changes are saved when marked