This is fixed as per commit
https://github.com/discourse/discourse/commit/fc0b7c9e2619add7750f572c6a51de1b81ab3b66