Fix bug in Crystal::activate.

This fixes a regression that was introduced with the range-based for loop. I didn't want to rewrite an old iterator-based loop, and using std::any_of would have been slightly too verbose (still waiting for algorithms to take containers instead of pairs of iterators), so I finally chose a break solution.