@Stephen Thanks for the report. This has been fixed.
https://github.com/discourse/discourse/pull/19922