Fixed chrY bug. If StopIteration exception caught, must assign variable
lastrow.

Also, potential bug: if there are no events in that chromosome, you
would not be able to assign a variable to last row!