The only time i ran into that issue is when i had walter.brame's version of the PDF Generator in my instance and found that it had some differences in the supporting script includes. Once i backed that out the error went away. Is there a chance you have that update set active?