Fix EZP-23332: Avoid warning in LegacyEngine Templating (take 2)