Snapshot/Restore: make it possible to delete snapshots with missing metadata file

Fixes #7980