Fixed stack overflow issue with Sitecore 7 and search