Add $nullIfDoesntExist parameter to Registry#getComponent.