Safer copy print headers
Merge pull request #1081 from camptocamp/prevent-print-failed

Safer copy print headers