Handle malformed responses (invalid json)