fix NPE in http dispatcher.