don't crash on deleted attachment