I noticed that when making a discount for a combo item the object accepts an empty list, I think that there should be some error message shown when no items are passed, since it wouldn't make sense to apply a discount to no items.
An if-statement has been added to make sure, that the empty is not empty. The bug is solved and will be marked as fixed.