Resolves: rhbz#1089377 crash on loading a specific rtf

Change-Id: I26864f3a2247f5d7184f395cfed91eaf92e36295