fix wrong '//' when extending URLs with an empty path (bnc#885254)

1st '/' is just a separator:
 ftp://user@server	  -> ~user
 ftp://user@server/	 -> ~user
 ftp://user@server//	-> /
changes 9.37.8 (8)