Cause: The selected item refers to a menu that is also an ancestor of that item.
Action: Fix the cycle before expanding.