Display "uncaught exception" page as content-type text/html
Thanks @4k4, so it seems that this is a minor bug, but the obvious fix would revert the "Standardize handling" issue.

I have raised this issue and linked it to the other issue.  I don't really understand the code here and would welcome any help to improve the issue text.