MDL-44287 glossary: do not output before redirecting
MDL-44287 glossary: fixing warnings when importing as new module