Added error checking for objective function components in HopsanCLI optimizations.
Added error checking for objective function components in HopsanCLI optimizations.

Hopsan/hopsan,Hopsan/hopsan,Hopsan/hopsan,Hopsan/hopsan,Hopsan/hopsan,Hopsan/hopsan