Removes error when displaying empty curve and potential unnecessary supergradient optimization.