Added version guards for solve results in PetscDiffSolver according to Roys suggestions