Resolved an issue with errors with empty response bodies.

When the response body was the empty string, instead of nil, we would not properly map to helpful error types. This change fixes the empty string case.

Fixes #260