rhbz1002774 - change HTextFlow.setContents logic to ensure correctness