Thanks for the report!
This has been addressed together with another issue here:
https://github.com/discourse/discourse/pull/31010