fixes #4329 Script errors on Workflow Tasks search