Prevent ReflectionTypeLoadException when calling Assembly.GetTypes()