Thanks for the report! The fix for this bug is under review:
https://github.com/discourse/discourse/pull/10133