Fix out of bounds crashing in unmarkPointsInCode.