Fix component registry crash.