Took a bit to find the right place to fix it, but here we go!
https://github.com/discourse/discourse/pull/9632