Should be ok for __template_name__ to be undefined before this if statement, since we're not accessing any objects on it because it will just be a string.