fixed bug where middleware crashed if meta key HTTP_HOST was not in client request headers