This is fixed now as per the commit
https://github.com/discourse/discourse/commit/ed0120171c950924413234ff54d56bf763d7cdda