Support multiple packages with nil values

line_items.sum(&:value) returns an error if any of the values are nil. I modified it to allow nils