[WIP] Expanded scope of the try/except block in the error reporter

Waiting for Jan to explicitly approve this.
I think this one can be left out. And it is also the source of the strange function! Behold commit 69b7458ce8c1f6e645278ae3bd389b461c28b2e2! Removed in 7c160b267a5229dbf4f3ef9c6315953cd6fccce1, the Django 1.6 upgrade, where we assume everything to be autocommit.