This should be fixed now
https://github.com/discourse/discourse/commit/17169b3037037103a54317c1f03b86f1359ed1a7