hide pagination when there are zero pages

Summary: fixes T856

Test Plan: try pagination as described in the ticket

Reviewers: shadowhand, rjmackay

Reviewed By: rjmackay

Maniphest Tasks: T856

Differential Revision: https://phabricator.ushahidi.com/D444