Fixed "new invoice" route issues (null invoice)