This is fixed now per:
https://github.com/discourse/discourse/commit/a0cd54750cca2866dfa978858c21c1a88a09899b