Handle AMI object being nill