fixed #1547:set selected menu item to null when it is removed from a menu

...u