handle Rack 1.3

* url formation breaks if scheme is nil