Jenkins: fix state for intermediate tree nodes