Fix bug in storing provider information in a certain case.

There is a bug in storing provider information derived from provider_info in conf.py.