Don't make mongo query if limit is 0.

Limit of 0 interpreted by mongo to mean no limit. We avoid this.