Add test to trigger the error reported in original issue
Return empty response when StopIteration is raised on exhausted iterator
Remove print statement previously used for debugging
Merge pull request #100 from cbmi/issue-99

Return empty response when the count in stats resource is empty