Make setSelection() work with missing points.