Improve performance of direct paragraph styling

# Performance
@100pages.odt
Note, to run this benchmark before the fix, include the url parameter includeSlow=true. e.g.: http://localhost:8124/programs/benchmark/src-index.html?includeSlow=true

| | master + benchmark (957dee3) (ms) | pr (ms) |
|-|---|--|
|Align the current selection 'justify'|err*|10482

* Unable to complete run as Chrome keeps hanging and asking to kill the unresponsive page.