Correctly handle pagination over Amazon S3 list_objects