Fix exception handling in the XQueryLexer.