HomeWildfire Games

Duplicate clearChatMessages since that ends up being cleaner

Description

Duplicate clearChatMessages since that ends up being cleaner
than having a stray function in gui/common/ that refers to page specific names and logic with a try-catch block to shield against reference errors, refs #3396, rP17465, rP17467.

Incidentally fixes ESLint no-empty hint triggered for empty catch blocks, refs #5524, D2146.