WorkerTaskMonitor: Fix isTaskRunning check