Prevent crash of httpserver in some requests. (Why? No idea.)