Check metadata before trying to load a KCModuleData from it
KCoreAddons will warn if the plugin could not be loaded, but here it is perfectly fine if we can not load the plugin.
Also the categories (like root category) call this method, without them having any metadata.