Fix issue with dynamic assemblies. Calling the Location property on a dynamic assembly throws a NotSupportedException.