fix exception in case message type text is null