This has been fixed a while ago
https://github.com/discourse/discourse/commit/a28c58feb18f49a7b599fce819fc437b39bddcee