avoid modifying shared HTMLEditorKit.getStyleSheet()
(cherry picked from commit c6be435)