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