Revert "Prevent #_id generation for invalid documents"

This reverts commit b91247e5361c8d366230dd433d7635af94115083.