Just pushed a fix
https://github.com/discourse/discourse/commit/841f36b0589d9e5aa0bbfcd328b0c3a2d7f795b0