HUE-1119 [oozie] Workflow builder fork fails

Added extra logic for forks and decision nodes when detaching.