[ticket/13346] Fix indentation, spacing and missing divs

[PHPBB3-13346](https://tracker.phpbb.com/browse/PHPBB3-13346)
they are not needed, the file closes them before (without having them opened).
So they need to be open at the end again.