evaluate_planner_objective.m: do not evaluate non-existing terms for linear models Closes #1781 See merge request !1864