net/http/cgi: make it work without REQUEST_URI environment variable

Fixes issue 4367.

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/7062052