Fix build not returning when cloning a dart repo.

Temporary fix to #2602 

The analyzer runs into an infinite loop when a dart repository is cloned and `pub get ` is run automatically. The build is triggered twice and I suspect that few of the `workspace.ADD` events are passed twice making the analyzer run into a loop.

This temporary fixed the issue for me. We need to revisit `workspace` events and the `analyzer`.
I'm late to the party, but still: is Bower somehow different from Pub here? We've patched Pub, but not Bower immediately below.