Fix legacy-compatibility bug for workflow XML