Only try and delete petsc options if set up

If we get an error building a NonlinearVariationalSolver object before
we've set the options prefix, then we should not try and look at it in
__del__.