fix(tasks): Fix unnecessary deletion of tasks

related to CAM-1128
Merge branch 'master' of github.com:camunda/camunda-bpm-platform