sale should only create invoices having a least a line of type 'line'
This avoids creating null invoices when previously created invoices may have deleted lines of other types, such as 'comment' or 'title'. Permits sales already in progress having this situation to terminate as opposed to staying in process, awaiting payment or partial payment.
Closes #12320 (closed)