I have a fix for this incoming
https://github.com/discourse/discourse/pull/34826
Thanks for the report!