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).