Prior to this commit, the Java client API would throw an NPE if it got a response from a server where the Content-Type header did not include a charset.