Fix - check if batch['hits'] isn't nil
Merge pull request #6 from dasdad/fix-nil-hits

Fix - check if batch['hits'] isn't nil