Just pushed a proper fix
https://github.com/discourse/discourse/commit/e2121c2c2c8b941d08231078b2e9fb09612785ea