PixelProcessor: check that the thread ID is < nThreads and the threadIndex is consistent