Handle errors from the server correctly
Handle errors from the server correctly

if there is an error, we want to return and not try to process the data any
further. Attempting to do so crashes the app since the data is null.

e-mission/cordova-server-communication,e-mission/cordova-server-communication