Bah. My last response seems to have been tossed into the bit bucket. Sigh.
I can't repeat your problem and nothing in the debug log helps me.
Questions:
1) When you say "it shows the list of books that were found", are you really saying that the search found books then failed? This seems ot be impossible when looking at the code, so clearly something strange is going on.
2) Could you give me the exact search you are using?
3) Does your search make reference to calibre saved searches? That could lead to some mysterious failures.
4) Is this the error you are seeing?