Added init checks to plugins and polyfills to prevent double initialization