Fixed regression introduced in rev. 1088079: also remove the element pointed to by restartPosition.getIndex()