Fixed bug at unrolling in the latch output list generation to create a
list with 0 entries if there is no latch in the tree