fix crush on empty current Match

`handleFinish` crashes when there is no matches on current query.
it should check before access `i.current[lineno-1]`.