fixing issue with yumpkg and aptpkg where pkgs was being zeroed out.
Merge pull request #13359 from garethgreenaway/13293

Fix issue in aptpkg and yumpkg modules related to holding/unholding packages