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