WIKI-125 Fix bug ArithmeticException when search found 0 result