prevented crashes if you have a tab that references a deleted file, closes #32