fun Iterable<ContractState>.sumCommoditiesOrZero(currency: Issued<Commodity>): Amount<Issued<Commodity>>
Sums the cash states in the list, returning zero of the given currency if there are none.