bpo-44143: Fix crash in the parser when raising tokenizer errors with an exception set (GH-26144) (GH-26148)

(cherry picked from commit 80b089179fa798c8ceaab2ff699c82499b2fcacd)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
3 files changed