Add a NULL test in case the remote name is NULL.

I don't think `git_vector` and hence `git_strarray` choke on NULLs, so in case it happens, we're good.