Remove exception thrown on no open JEditorPane