It is fixed in
https://github.com/discourse/discourse/commit/0861ca7764d37f5b5a2472a54306cc71b58a961e