Fixed Crash in CHECK Query for Local Distributed Tables

Fixed a crash that occurred when running a CHECK query for Distributed tables if all shards are local (chenxing.xc).