Make parse exception handling more robust

Prevents obscure error messages about assoc requiring integers in cases
where the response body is not a map.
Merge pull request #4 from hugoduncan/feature/make-parse-exceptions-robust

Make parse exception handling more robust