Ensure params were set in ec2_vpc before accessing them

Fixes #6763