Restore glossarylist check introduced in #1659

It was omitted in 0a9a6f0.