That should fix it:
https://github.com/discourse/discourse/commit/049561ac49b772aa566f3a44d358a23698f733a8
Thanks