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