Looks like this was fixed in
https://github.com/discourse/discourse/commit/00c97178d517250c60b5c3ecfffdd8fe64ae47cc