ECMS-6444 : fix pagination problems in search

With a new constructor, this variable isn't necessary.