lexer: Check that 'read' function in lex_source returns valid value.