response doesn't cause NPE on null response

Locally when developing got an NPE due to ECONNECTREFUSE which ended up
as a null JSONResponse which ended up coming out at NPE
"fixed whitespace in errormessage"
Merge pull request #20 from holmla/npe_fix

Npe fix