Fix crash when exporting answer to PDF (not admin GUI)

After sending survey, "Print answers" -> "Export to PDF", LimeSurvey crashed.

Error persists when exporting answers to PDF from admin export tool.