fix bug when opts.data.messageId is null of ext command