pkgs: Refs #2484 Fix Appstream UI

On a fresh install, we don't have activated packages. And if we don't
have activated packages, we have a traceback :-((((

This commit fixes it