Change is_residual in crop_curves.

Return a curve_set with 'is_residual' component only if the argument curve_set contains it.