git_remote_ls() crashes before connect is called

The possibility exists that the user may call ```git_remote_ls``` before ```git_remote_connect```. Currently we're crashing as we're dereferencing ```remote->transport``` without first checking its validity.