for bug #257, support NULL msg in msgs to send.