Fixed Issue where line items would generate incorrectly in the pdf when only one item displayed in the line