Fix a crash when we fail to parse a typexpr in a global declaration.