Fix a bug that caused messages with no formatted text to be quoted as "null".