Empty array return using entityService on plugin::users-permissions.role from a plugin

I am using strapi-plugin-migrations. It works mostly correct, except when I use

await strapi.entityService.findMany('plugin::users-permissions.role', {filters: {type:'public'}})

This always return an empty set when running within the migrations script. I assume this is due the timing of when the plugin::migrations is running, and the user-permissions are not yet available.

Any ideas on how to fix this.