Ensure document updates preserve existing IDs when replacing the entire document.