fix error on sys.shards.num_docs when shard is not started