Make sure we always save to same tab if editor has not been saved before.