Fix bug#4413 Navigation Error in Nav Tree for Search Results Past the First Page

Signed-off-by: Atul Pratap Singh <atulpratapsingh05@gmail.com>