Quit early if no ports tree are defined

Obtained from:	dragonfly branch