Fixing behavior if response is `nil`

Testing without internet connection, `operation.response` is `nil` and the `failure` block is not called. We can get the URL from the `operation.request` instead of `operation.response` (as done in the `success` block).
Merge pull request #1505 from marcelofabri/patch-1

[2.0] Fixing behavior if response is `nil`