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