Fixed a bug with the automatic upgrader not properly re-enabling a package after the upgrade is complete