Fix loading of effect if plugin defined X-KDE-Library

Alexander Lohnau requested to merge work/alex/effect into master

Otherwise we get the filename to the library and not the KPackage.

The plugin having this set is most likely a leftover, because KPackage plugins to not need to define a library.

BUG: 449881

cc @nicolasfella

Merge request reports