Fix for the initialization of the main menu items.

If you tried to activate the plug-in an error was thrown. The non existent item wanted to determine its parent in order to create himself.