Fix providers config loading logic and also handle old configs properly.
If there are no provider details, don't add it to the list.