Fix crash when deleting with no missions (fixes #313)