Thanks for the report, this should fix the issue once merged:
https://github.com/discourse/discourse/pull/39113