Thanks for reporting this issue! The following PR should fix it.
https://github.com/discourse/discourse/pull/30237