batch operation return always have unprocssed_items or unprocessed_keys set, even if it is an empty list. As a result it is impossible for these values to ever be undefined. Update record definitions to reflect this and fix util.