Handle InvalidRequestError responses that don't contain a param

Before this change, the test fails with TypeError instead because the error handling code is trying to index into a string because it expects a hash.
Merge pull request #12 from thinkthroughmath/invalid_invalid_request_error

Handle InvalidRequestError responses that don't contain a param