[FIX] problem of corrupted pdf when sending email from email-template.

Launchpad bug: https://bugs.launchpad.net/ocb-addons/+bug/1122155