Do not fail to delete media when files are missing

Closes #353