gw_summary: fix bug in multi-thread get_channels
get_channel: add exception handling for cornercase