Close the tabs div properly if tabs are present, working around a nunjucks bug/designflaw/whatevah