fix if component template file exists validation