Fixed SyntaxError syntax raised by TemplateSyntaxError.