fixes batch import in gallery fields -  https://github.com/aheinze/cockpit/commit/332854ad62bb84fcae0e3c71cff5576f8ee827be#commitcomment-7724283