Fixed determination of WebException