EZP-22152: Fixed debug of legacy templates list when not in pure web context
Fix EZP-22272: Image alias generator throws exception if original file is not present