Update component.php

Menu Item can be assigned to the components only. If more extensions (component, plugin) with same name/element is installed then it's needed to load ID of the component. The same problem occurs in Joomla 2.5.x and 3.x.