fixes #5196 Workflow tasks AssignedTo dropdown is set to empty

Fixed the issue and pushed the code for review, please check it.