Fix handling of responses with an empty body