Fix crash when profile not specified

Good point, I'll rename the parameter to default_iam_endpoint to make it clear