Prevent negative indexes

When stepping backwards to find a line number we need to stop at zero.