Unless it says "Sold by: Amazon.com", Amazon isn't party to the contract. DHL doesn't get to know what is in the package they deliver, so why should Amazon be entitled to that information?
You have a cite supporting that legal theory? Because the fact that it happened on their website using indexing in their database and (especially) that they took payment directly, seems like a pretty strong argument that they ARE a party to the contract.