Fix sending 2 emails on issue close