Work around the lack of EnumChatFormatting.getFormattingCode() and fix startup NPE during command registering.