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