[[ Bug 12303 ]] Make sure paragraph styles of an empty initial line are ...

...preserved when replacing via 'set the text of ...'.