Created by: sandyhouse
cherry-pick #21545 Construct a DistributedStrategy instance if the passed one is None which will throw exception.