Fix bug 990251 - Fix crash when deleting event