Use a try statement to attempt to add the Hessian to the ReducedFunctional.

(instead of using "len(parameters)". Should make things a bit more robust, but
really the way forward is to clean up the Parameters classes and to support Hessian
computation properly.