editor: ensure we have a tab before doing something with it.