do some validation on a batch in retrieve_all_items() so that we can give a more useful Exception