Handling FatalErrorInFunction in executor kernels.
Some functions (e.g., src/thermophysicalModels/thermo/thermoI.H T function) that conditionally trigger FatalErrorInFunction may be implicitly called inside a kernel, as they were flagged as device. This leads to compilation errors.