Issue 19844: Fixed error resulting from clicking on invalid menu item in navigator

Issue 19844: Fixed error resulting from clicking on invalid menu item in navigator