configs: Fix crasher in provider configuration reference parsing
configs: Fix crasher in provider configuration reference parsing

Due to a logic error, this would panic if given an empty traversal.

hashicorp/terraform-plugin-sdk,hashicorp/terraform-plugin-sdk