[Fixes bug #1085676] Ensure that effects don't hide unfinalized text.

The history item is now created a bit earlier on to ensure that text is
finalized before the effect gets applied.