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