Will not throw an error if there are zero total records

Fixes #41