fix url parse regression on empty elements