Fixes inconsistent packages issue

* Where multiple jobs with the same template were receiving different sets
  of packages.

[Fixes #47030975]