handle case where filename wasn't saved to database and we're destroying the record