Restore lexer file pointer on INCLUDE error (#4871)