Avoid duplicate bug notifications when a hook is fired more than once.

This happens when a repo is replicated and the replicates all fire our
hook triggers.

cbugg: closes bug-227