Fixes disableWorker regression
Merge pull request #4730 from yurydelendik/disableworker

Fixes disableWorker regression