Fix a bug with Firefox and badges in the chat menu