Itext widget fixes

- https://github.com/dimagi/Vellum/commit/34aa7c3960d0f6663b2cf19898efbdf4e85ebb6c#commitcomment-8718516
- http://manage.dimagi.com/default.asp?148194