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