Fix double decrement of issue counter

The issue counter for the repository got double decremented when closing an issue through an commit message. This fixes the issue.