lexer: fix logic bug in Lexer.empty()

Signed-off-by: Alejandro Mery <amery@geeks.cl>