added null check for listing workers