Fixed nil error

* when a server error occurs with no JSON returned and no error handler specified.