Fixing uncaught exception when response is empty.

If the response body is undefined it would call the callback but not return. The lib would then fail on line 235 trying to parse the "undefined" body.