fixes #4049 Broken edit workflow task for multilingual content

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