stx-anaconda-image.bbclass: add error handling when copy pkgs