Thank you for reporting this
I just fixed that bug in this PR
https://github.com/discourse/discourse/pull/26993