This is now fixed per
https://github.com/discourse/discourse/commit/f5e170c6b5691612bb4bc8dcf9a327d64f619561