Fix fatal error on menu deletion, fixes #23