Fixed crash on deleting non-existent menu item. Fixes #2