I submitted a PR that implements the expected behavior:
https://github.com/discourse/discourse/pull/3559