fixes that no files were displayed, when not on page 1 and clicking on a result link higher than the total amount of files