Fix a bug with SolverError

SolverError was overwritten in IpoptSolverCommon, making the latest changes useless.