Warn if KPackage is invalid
Previously it would warn about no "mainscript" having been provided but all paths are empty for an invalid package.
Print a more appropriate error message about the kpackage itself being invalid.
Differential Revision: https://phabricator.kde.org/D23722