Fix NullPointerException on HTTP error with empty body, e.g. 304