Fix live highlight when starting from a CSSDocument

For #7453.
I wonder whether there's a nicer solution.
No need to use `doc._masterEditor || undefined`. This can simply be `doc._masterEditor`.