Can't create new link if no links exist in the accordion

Also fixed bug where it was no longer possible to delete tabs due to a
previous change in iteId