EditTableDialog: Allow renaming columns of existing tables

Make it possible to rename the columns of already existing tables using
the EditTableDialog. This is a feature we lost somewhere around commit
b36800ea02213f13c3e8b325935d84533d9fa11e.