This is fixed by below commit
https://github.com/discourse/discourse/commit/b7c501bf52f07ad55f2bbb96975e9738fefc1231