When setting the same trigger definition twice, don't replace it

This avoids the possibility of a feedback loop in cases where your
build machinery registers a trigger to run itself, and that trigger
dispatches immediately to run the build machinery and registers
the trigger for itself.