Fix a crash in ls-remote when refspec expands into nothing