check needed to prevent re-looping over the previous tree in the case that the last tree in the chain has 0 entries.
Merge pull request #156 from elaird/duplicate-events-bug

Duplicate Events Bug