Fix fatal error in Recurly_Invoice::getInvoicePdf()

Also adds a test.