Add a NULL check in summary_select_by_msg_list when selecting tree nodes.