EZP-21614 : avoid twice tpl compilation

In case the site.ini[DesignSettings]StandardDesign is duplicated in site.ini[DesignSettings]AdditionalSiteDesignList, the template in standard design folder are compiled/checked twice.

This PR intends to solve the problem by doing the same thing that the code in eztemplatedesignresource.php