Ok this PR should fix this bug:
https://github.com/discourse/discourse/pull/13247
Thanks for reporting this @alex21!