Check that the given editor actually exists, and handle it not being set by using a series of fallbacks.