[frontend] Only add next page link if there is any data