fixes #4050 workflow task title does not reflect when you edit title

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