This was actually fixed in
https://github.com/discourse/discourse/commit/0a1b16bb1638792d083978861586967120e56371