EZP-23553: Fix checking for existence of legacy templates
Merge pull request #1062 from emodric/fix-legacy-tpl-engine-exists-check

Fix EZP-23553: Checking for existence of legacy templates does not work