fix oops in FS::cust_main_invoice::replace preventing package cancellation