Only use valid shares for worker status

Fixes #229
Merge pull request #230 from TheSerapher/issue-229

Only use valid shares for worker status