FIX: Added missing 'endif' in Jinja2 template.