Fix #4751: Find in function works incorrectly if the search result is a multiple of 100.

By reducing the matches by 1 when calculating the last page it fixes issue #4751 since we are actually starting counting from 0.