Fix check for nextSlice null sentinel