[Fix] Sphere when no nodes are selected

Function will not continue further which was causing program crash