[BUGFIX] Recreate PackageStates in install tool if missing