frontend: fix paginating without refresh
frontend: fix paginating without refresh

This fixes the situation where the pagination cursor would be out of bounds
when executing a search query. This sets the cursor to the first page when
searching.

kopoli/paperless,kopoli/paperless,kopoli/paperless,kopoli/paperless,kopoli/paperless