Preventing nil line item PO bug