gopher: Fix for 0-length path

This is the case for urls like gopher://gophernicus.org
(without trailing /), which ended up being downloaded instead of
displayed.