Clear Blackboard Value node doesn't seem to function

I found that
in this file: Engine\Source\Runtime\AIModule\Private\BehaviorTree\BlackboardComponent.cpp
in this function:

 void UBlackboardComponent::ClearValue(FBlackboard::FKey KeyID)

there’s this line:

const bool bHasData = EntryInfo->KeyType->WrappedIsEmpty(*this, RawData);

I changed it to

const bool bHasData = !EntryInfo->KeyType->WrappedIsEmpty(*this, RawData);

and the ‘Clear Blackboard Value’ node started working.