support for lipisha fail responses

when a request fails lipisha sends an empty array as "content" currently
we expect a hash. this commit checks if the content in the response is
valid.