This is fixed now @Nacho_Caballero via https://github.com/discourse/discourse/commit/524890c5e437b22c3505b7fbbc3df8acdbc431db