Fix env for rack application

Fix env passed in rack application.
It's tested by Rack::Lint
It will be like this:
u = URI.parse("http://#{nil}/env") => #<URI::HTTP:0x00000006f53380 URL:http:/env>
u.path => "/env"
u.hostname => nil