Fix exception when provider name not known.