JSON: dont send msg-text when msg is null

JSON: dont send msg-text when msg is null