Errors view: fix generated code

Not sure when it started, but we're generating a mess of unclosed divs in this view.
Locally this works fine.