Check instance_id not empty on terminate instance