fixing uncaught exception when response isn't json parsable in regards to issue #13

btw it is not good practice to mix string values with side properties: 

when  `response = ''` , `response.httpStatusCode = res.statusCode;` would produce unexpected results...

So I've refactored it a little bit.