[BUGFIX] Fix bad preconditions for PackageStates migration