Fixing bad memory access issue in vtkGradientFilter
If the gradient filter is operating on an unstructured grid and the gradient wasn't requested but other quantities derived from the gradient was requested there was a segfault in referring to the gradient array.
Addresses paraview/paraview#18027 (closed).
Backport: paraview/release
Edited by Andrew Bauer