Looks like @sam fixed this yesterday:
https://github.com/discourse/discourse/commit/d6ed9848a9882988412b0dc6bc4310e4a5ab71cb