Added try-catch when requesting assembly.Location

This fails for dynamic assemblies