Fix non-dict response handling (issue #13)