Fix blatant mistake. Fixes #522.
Properly complain when a profile specifies an unknown provider.
Merge pull request #523 from s0undt3ch/issues/522

Fix #522.