[#9826] fix errant creation of new PolicyTemplates

This solves the bug in the upgrade script, but does not fix installs previously affected by the bug.