I have fixed the issue to the best of my knowledge and opened up a pull request at Github
https://github.com/Jermolene/TiddlyWiki5/pull/3360 -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/dab8b006-95a6-4407-ab6b-befe47d33c29%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.