fix: #3565603 Check for glossary ($glossary_id) before using it

Closes #3565603

Merge request reports

Loading