I have created a PR for this:
https://github.com/discourse/discourse/pull/5390
@codinghorror can merge if he agrees.