Fixed|libappfw|DocumentWidget: Document contents not updated for drawing

Fixes the issue where the autocompletion popup would sometimes refuse
to show anything (zero content size). The problem was that
DocumentWidget gave up on the TextDrawable before it had finished
wrapping the text.

Also applied some general cleanup in DocumentWidget.