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