Make sure ObjectID type is not parsed as object
Remove the undefined property to avoid mongodb upsert overwrite