Fix the null reference exception which occurs when DependencyResolver.Cu...

...rrent.GetService<IConfigurationSource>() returns null.

And just in case, also eliminate the possibility of null refs caused by something setting DependencyResolver.Current to null.

Fixes #3