Hide pagination wrapper if there is none

Fixes #301