Fix server error when rendering a URL with no http:// part