Validates the template name before trying to read.