configs: fix module for_each call bug (#31091)
configs: fix module for_each call bug (#31091)

This fixes a bug introduced in 1879a39 in which initialising a module will fail
if that module contains both a provider block and a module call using for_each.
hashicorp/terraform,hashicorp/terraform,hashicorp/terraform