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 6.39.5 (31)