This should be fixed now: https://github.com/discourse/discourse/commit/437d7a0ad19e3700652951411c00514ca31f3225