Fixed bug where if response body is not a hash (specifically an array), ...

...the code logger will throw and exception