Fix usage of parent class properties in ComponentAsId (NH-3148)