Thank you for reporting this bug. Fix for this problem was just merged
https://github.com/discourse/discourse/pull/34215