Correct bug in upsert causing empty default properties to replace existing properties on document being updated