Thank you for reporting this, I just fixed it in this PR
https://github.com/discourse/discourse/pull/22729