That is now fixed by
https://github.com/discourse/discourse/commit/1791abab25487c75fe2a3fb457f7ad9632ae9ca7