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