Fix doc analyser bug when editor removed without calling modes/panels clear