Prevent exception from being thrown when selecting assemblies to scan.

This resolves #2053. Exception when calling System.Reflection.Assembly.Load(...), during selecting assemblies to scan for the endpoint, should not go unhandled.