Fix for https://github.com/pallets/jinja/issues/1168. There was a breaking change that was reverted in jinja2-2.11.2.