Fix a seg fault: we have to check that when calling positionForBreakpointAtIndex(), the queried index is not out of bounds