fix for #3409 `polyglot/transform/map.py` failing because of error text change

over-the-shoulder by @VeXocide