Fixed an error throwing an HttpError exception when WinINet runs into an HTTP error