Code editor caret bug 6.0.4

Hello, looks like a bug with the code editor caret.

You can reproduce in the demo; when you change tab from ‘demo’ to ‘code’ and then back again, the caret component will disappear.

Seems to be because the caret is now created from a call to lookAndFeelChanged()