Fixed NPE when selecting active menu item.