Fix occasional UI 'Error setting up request' alert
When cancelling an API request, the app's production build would
interpret the cancellation as an error, due to the fact that the
production build minimizes the class' names.
Solved by using a different method to find out if the error was an
actual error or just a canceled request.