Fix running without OutputTree

Running without OutputTree crashed; it now runs
fine, simply not writing the output tree, as it should be.