Fix bug with {{task}} in jinja templates.