Please call GetIsReplicating() instead.
The UStrixReplicatorComponent::IsReplicating member variable is for use by Blueprints, and there is a separate getter function. Call the getter function UStrixReplicatorComponent::GetIsReplicating() to refer to this flag in C++ codes.