fix NPE in ES HTTP sanity checks. #506