Fix for DAWNSCI-524: nested composite workflows broken.
Reported on Passerelle Google code as issue 45.