This should be fixed as of:
https://github.com/discourse/discourse/commit/74269ad585602413fedf9296dc8032d3d91bc250