Restore glossarylist check introduced in #1659

It was omitted in 0a9a6f0.
Merge pull request #1719 from eerohele/restore-glossarylist-check

Restore glossarylist check introduced in #1659