[WTFURL] Set/remove ports only if the KURL instance is valid
Created attachment 188321 [details] Patch
Created attachment 196401 [details] Patch