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