MDL-42732 glossary: fix use of hook when empty.