Fixing bug in issues_closed route: res.send being called multiple times