This is fixed by the commit
https://github.com/discourse/discourse/commit/e7e4074856c71af7e9dca640f4473886e3d29f3b