Add defensive catch for HttpException

This will be thrown when called via WCF with legacy ASP.NET mode enabled
(e.g. HttpContext is available) where the InputStream is not accessible
at the point in time we normally handle the error.