lexer: Fix use-after-free error in lex_source_get_lookahead().