Thank you for reporting this issue
I fixed it today with in this PR
https://github.com/discourse/discourse/pull/26022