Don't insert null QActions
This fixes a warning: QWidget::insertAction: Attempt to insert null action
that was because the undo/redo actions were set to null if the document is readonly, instead just disable them like the rest of the actions when in readonly mode.
Found while working on Ark, which uses katepart to preview text files.
NO_CHANGELOG