httpclient to test response body contentBytes before apply decodeToString to prevent exception

prevent from throw an error when an empty http body was returned.  also this is an effort to allow http test to pass issue 212 on github