Fixing error in `on_change_carrier`. #6456

`if not (sale_id or shipment_id)`