Catch cases where record['discount_amount'] = None

Magento sometimes sends sales_order.items with the attributes 'discount_amount' set to None; this caused the float() function to fail with the error "TypeError: float() argument must be a string or a number".
`discount_value = float(record.get('discount_amount') or 0)` is simpler