Fix macro expansion of _PyErr_OCCURRED(), and make sure to use it in at least one place so as to avoid regressions.
Closes #19178: some more cross-references about packages in glossary. Patch by Berker Peksag.