Odd. I don't use HUD normally, but I just went to a finished game,
Game 11216257, turned on HUD and had no problem toggling team chat on and off and posting accordingly. Perhaps it is only a problem if HUD is enabled prior to the end of the game, or maybe it is an interaction with other scripts, or it is browser specific. Can you provide more details of your setup?