XNAT-2836, XNAT-2900 Fixes to various pipeline issues, including resolving the duplicate workflow entry problem.