prevent crash when there are no invoice lines