katedocument: Avoid closing modified read-only tab
The read-only tab can also be modified (the user can toggle the read-only state of the regular tab through the UI).
The read-only tab can also be modified (the user can toggle the read-only state of the regular tab through the UI).