MDL-38244: Fix codechecker issues in mod_glossary

MDL-38244: Fix codechecker issues in mod_glossary

MDL-38244: Fix codechecker issues in mod_glossary