Hmm, that’s very odd. I’ve created a PR to correct the issue in any case:
https://github.com/discourse/discourse/pull/5836