issue a response when original response is not an object.
Merge pull request #819 from craigh/responsefix

issue a response when original response is not an object.