fix return format of the GetCompletedWorkflows

fixes #5028