Fixed index bug causing infinite loop.

In case there are no hits in an event, the dead time
filtering will hang due to a silly indexing bug.
Solved by exiting if there are no hits to process.