Update client.js

I added an additional condition to assign the result in the request callback.

My object.Body contained ```completeActivityResponse```.