Fix removal of orphaned snapshots.