MDL-38244: Fix codechecker issues in mod_glossary