It should now be fixed
https://github.com/discourse/discourse/commit/5783e908ea5741515c62f7aa51055e04f8faa635