Retry when network times out

In the case of a network timeout error, the nsurlsessiontask delegate
returns an error but not a response. The retry checking logic checks
the class of the response, which will fail if the response is nil.
This causes network timeouts to never be retried.