Modules may exist without an Assembly,in this case the line
"method.DeclaringType.Module.Assembly.EntryPoint"
causes a NullReferenceException as Assembly == null.
This change first checks if Module.Assembly != null.
Merge pull request #443 from 0x53A/master

Fix a NullReferenceException: Modules can exist without an Assembly
Merge pull request #10 from icsharpcode/master

Modules may exist without an Assembly