In some cases (e.g. when using Firefox Klar) and copying the URL (of a link), then only the uri is set and not the text. This prevented (before this commit) the autofill of the add package source dialog in such cases.