Wrap model toJSON in root when present
Don't try to parse an undefined response

Responses with a 204 status don't have a body. Attempting to parse them
would throw an error.