Prevent division by zero error in paginated resources

See cbmi/harvest#36

Signed-off-by: Byron Ruth <b@devel.io>