Fix client crash when an empty message is sent using TextComponent.fromLegacyText