Looks like this is already fixed by @Johani in
https://github.com/discourse/discourse/commit/c3560a66f35fdd34de8889aebb9f45c93c150b2c#diff-fed21847d651f6eb2cc76abbd770f5f8
Should be deployed to your site soon.