Fix Jinja2 conditional syntax.