fix crash on autoshard=False
fix crash on autoshard=False

get_shard_count sets self._gw_url as a side effect...
so does get_gateway_url... So call the latter when we do not need the
shard count.

SunDwarf/curious