util.planckfit fix for when leastsq refuses to fit the data.