#2403: added a null check in the MatlabParameterVectorEvaluator to prevent exceptions when clearstate is called