Fix bug where empty list caused server error trying to get itemdata.
Small change to amazon testing file.