Fixed check of responses with empty body

fix for #18