Fixed a minor bug if there're no actual PEs to be built into a spanning tree