Only use valid shares for worker status

Fixes #229