Crash spawning actor from template

Please note that this is also mentioned in an official documentation page, however considering my observations, this code would fail if the existing actor has components.

The NewObject and SpawnActor functions
can also be given a “template” object
to work with. Unreal will make a copy
of that object, instead of making one
“from scratch”. This will copy over
all of its UPROPERTYs and components.

AMyActor* CreateCloneOfMyActor(AMyActor* ExistingActor, FVector SpawnLocation, FRotator SpawnRotation)
{
    UWorld* World = ExistingActor->GetWorld();
    FActorSpawnParameters SpawnParams;
    SpawnParams.Template = ExistingActor;
    World->SpawnActor<AMyActor>(ExistingActor->GetClass(), SpawnLocation, SpawnRotation, SpawnParams);
}