Fix common error with task worker = None