avoid NPE in check for dirty editors