CRM-11227 fix pdf generation bug

Conflicts:
	packages