Migrate all callers to use type-safe ReservoirCellIndex and
ActiveCellIndex wrappers, then remove the deprecated isActive(size_t),
cellResultIndex(size_t), and setCellResultIndex(size_t, size_t) methods.
Adds checks for null case data in several functions to prevent potential crashes when the case data is not properly initialized.
These checks ensure that operations are only performed if valid case data is available.