Clear magic value when destroying interpolation plan.
Return NULL for CUDA plans when environment is insufficient.