Fix issue with dynamic assemblies. Calling the Location property on a dy...

...namic assembly throws a NotSupportedException.

Suggestion: Check if the assembly is dynamic before using the location property