Alright, I think I found out what the problem was. In the dummy dataset the items actual cost is set to 0 almost for every item. That seems to cause blank invoices. At least I get an invoice now that I've changed that. Someone should really take a look at the dummy database.