Fix exception when configuration is read

I messed up and didn't check this on .NET on Windows. Mono doesn't throw an exception when you set a configuration property. But when I validate the prefix, it sets the property, which causes .NET to throw an exception. Sorry about that.