get_urlmatch: avoid useless strbuf write