Thanks for the report! I could repro using your steps and that certainly isn’t ideal.
I’ve added a fix here:
This will be available with Discourse updates soon.