Update milestone issue stats when reopening/closing issue

When closing or reopening issues, the code forgot to update the stats for milestones. This commit adds handling for this and updates the open/closed issue counts.