Fix IOException that prevents a ConnectionException from being thrown normally; e.g. when the server responds with a 500 status code.

... as per http://developer.android.com/reference/java/net/HttpURLConnection.html