trim whitespace off of the raw response.  

There are cases where the response body may come back as " ".  This fails the check to see if the response is empty and tries to unmarshal the response, which fails.