Fixed bug in simplepath reduction to handle trees without any output
correctly