NodeJS SDK - Handle malformed responses

When userGrid is down or returns something unexpected this response handler throws an exception because it tries to access properties of undefined.