Remove InvoiceListItemFormat since it was unused.
Fix NPE in getLockHolder. Fix StackOverflow in InvoiceManager.