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