Fixed maxResults bug

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