GCP-7611 fix tree initial state when study id is provided