Importer: fix bug that caused an empty group permission table

This bug was triggered only on databases where no projects no
projects already were linked to permissions. This is the case
on an empty database, therefore, in a new instance.