It is fixed as per commit
https://github.com/discourse/discourse/commit/d8e641cd98e7550561d561a72065d2ee842dde3b