Don't dump out html for unhandled errors (bug 1000992)

This doesn't address the root cause of bug 1000992 but it does mean our unhandled error message is not just outputting as html anything we get as a response. Instead this defaults to a generic error message.