Fixed bug in check on badCurve on SupernovaFit.set_lightcurve().