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