Fixes pagerfanta totalPages 1 error when no results