Prevent MethodAccessException in assembly name retrieval for Silverlight

There was `MethodAccessException` thrown in Silverlight when we try to access security critical property `Assembly.CodeBase`.