Fix detection of whether or not a current menu item has already been set.