Prevent MethodAccessException in assembly name retrieval for Silverlight

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