Fix error reporting of lexer problems at the start of the input