Fix issue when extensions are not installed with jinja2