Fix compare_with_schema

- Check if _id exists before deleting
Merge branch 'release-v14.2'