ensuring the default editor is always set (avoids NPE)