fix ec2 module if instance_id is None