Fixed improper closings of conditional blocks in Jinja.