What is your version of the script?
I don’t have this behaviour.
Oh sorry, maybe I’m confusing with the other Bookmarklet/Userscript to guess Unicode punctuation of titles script!
This error sounds like MusicBrainz userscripts tips and tricks - #2 by jesus2099 but I cannot test this script at there moment, I’m on mobile (cannot type Ctrl+m).