Destroy shipments in api/line_items_controller when needed

Fixes #3914