Fix EZP-23332: Avoid warning in LegacyEngine Templating (take 2)
Merge pull request #1098 from crevillo/EZP-23332.2

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