It appears that setting limit to 0 now limits the number of results to 0, rather than be unlimited, as stated in the online documentation. Is this a recent change? Can you change the documentation if so?
The tutorial says:
Note that we use a limit of one in the above. Specifying a limit of zero means "don't limit the results: return everything you've got".