Fix the condition portion on the set latest rule.

The rule, as currently written, updates all the bugs if they occured before the new occurrence.

The updated version makes sure that it only updates the bug associated with the occurrence.