transport: prevent git_remote_download() from segfaulting when being passed a lightweight remote built with git_remote_new()