sometimes worker dict has None values. Fixes #276
Merge pull request #278 from kouk/fix276

sometimes worker dict has None values. Fixes #276