Fix for menu item when install / update a component with same name as a plugin.

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.