I believe @eviltrout already fixed it
https://github.com/discourse/discourse/commit/5890dae64c7af7ca0c93728a98e25f3bc1195ccc