Add check before setting focus to supertinyeditor