null check for MessageObject