Fix of JS error on WSC popup for correct text or empty editor