fixes #4097 Error changing the workflow task title

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