Fixed bug when using a renamed _id field and an update with replace

Fixed bug when using a renamed _id field and an update operation which replaces a documents fields entirely.