Modified cloneDoc to exclude _id property.