The court still needs good proof that you intended to receive the package. If they don't have proof, there isn't much for a conviction to stand on and the next instance should slap it back hard.
That's how it should be. But plenty of people have been convicted in this way, unfortunately. Plus they have probable cause to search your house which isn't much fun either.