Hide paginator if only one page

When there is only one page, we can hide the paginator block as it will be useless.