Catch and log jinja2 syntax error exceptions for pages