pkgs: Fix trackback error when adding an empty package