More argument checks in git2r_remote_url C function