Fix NPEs in WorkerEntitySearch