Add missing {% endif %} for haystack configuration