Fixed in:
https://github.com/discourse/discourse/commit/df465ed0be415196c88f806ddfce65df85f6e545
Thanks