json should not be parsed if the buffer is empty
Merge pull request #69 from Torsph/http_204_dont_parse_json

Dont try to parse JSON if the statusCode is 204 (No Content)