PDI-11427 - Integration test org.pentaho.di.core.plugins.PluginRegistryTest is unstable

@mattyb149 Fixed computing number of plugins and PluginRegistry API usage. Test is stable for ~10 builds.