fix for crash when getting unexpected response code from web site