Amazon: add api_response.length defined check.