FIX: Close navigation dropdown when item selected (PR #12155)

This if statement was backwards, such that it was a no-op. This hasn’t caused a problem because clicking an item triggers a page load, which destroys and recreates the component.

However, we are soon planning to remove the intermediate loading screen, which means the component will not be removed/recreated.

GitHub