I am getting same error in Helsinki at a customer.  Did you ever resolve what is causing the issue?  I believe it is in the createPDF function or later code in GeneralForm script include.  I don't think its Faheem's code.