fix upgrades when cust_pkg.change_to_pkgnum points to a package that was removed...