Fix HTML5 validity, (balance out divs accross templates).

https://bugs.corefiling.com/show_bug.cgi?id=40263