Don't set codemirror's contents to undefined.