Resolve the fatal error on deleting assigned menus, fixes #23

@fjarrett