Issue #547 - Upgrade legacy PM template during processing.