Created a helper method isInstance() in ComponentManager which uses a workaround when running the application in WebGL.