check that compiled template exists before invoking it and remove redundant error log