Fixed bug with console mode creating edges to data nodes that are
conditionaly set.

Also fixed a bug that resulted in sometimes created an extra start
node after the end of a console block.