Added upsert support when updating with a document. #399