fixed CodeMirror when value is null string