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