Fixed maxResults bug

maxResults was ignored if <= 1.

Calling searchProvider.Search(myCriteria, 1) returned more than 1 document.
Calling searchProvider.Search(myCriteria, 2) returned exactly 2 documents.