fix null pointer exception on timeout
Merge pull request #1 from maggu2810/worker-possible-null-pointer-exc

fix null pointer exception on timeout