Remove unused property in response object.

I made sure that only one of the `result` or `error` will exist.
via. http://www.jsonrpc.org/specification#response_object
This is also not semantically the same as before: it should be `data.hasOwnProperty('id') ? data.id : undefined;` to match.