Fix style object deletion in iText. Closes #1035