Fix getComponentInstance failing with a component ID of 0