That’s now fixed with
https://github.com/discourse/discourse/commit/e65ddc6c253fb89ce992a3610f60ccf6a30b02a5