Merge "Don't store invalid pkgs when migrating filters" into sc-v2-dev