I’ve opened a PR with a fix and am getting it reviewed ASAP.
https://github.com/discourse/discourse/pull/34866