Added null check for DeclaringType
Added null check for DeclaringType

On some platforms in special cases it is possible for a method's declaring
type to be null.
fixes #28

BrutalCode/NLog,BrandonLegault/NLog,vladikk/NLog,luigiberrettini/NLog,nazim9214/NLog,blair55/NLog,NLog/NLog,RichiCoder1/NLog,czema/NLog,bhaeussermann/NLog,BrutalCode/NLog,rajk987/NLog,vbfox/NLog,fringebits/NLog,babymechanic/NLog,mikkelxn/NLog,tetrodoxin/NLog,ajayanandgit/NLog,luigiberrettini/NLog,pwelter34/NLog,tetrodoxin/NLog,babymechanic/NLog,AndreGleichner/NLog,MartinTherriault/NLog,kevindaub/NLog,Niklas-Peter/NLog,breyed/NLog,bjornbouetsmith/NLog,czema/NLog,UgurAldanmaz/NLog,tmusico/NLog,vbfox/NLog,thomkinson/NLog,vladikk/NLog,UgurAldanmaz/NLog,campbeb/NLog,kevindaub/NLog,snakefoot/NLog,breyed/NLog,blair55/NLog,BrandonLegault/NLog,blair55/NLog,campbeb/NLog,ilya-g/NLog,littlesmilelove/NLog,czema/NLog,304NotModified/NLog,ArsenShnurkov/NLog,bryjamus/NLog,sean-gilliam/NLog,AqlaSolutions/NLog-Unity3D,ArsenShnurkov/NLog,AqlaSolutions/NLog-Unity3D,pwelter34/NLog,littlesmilelove/NLog,AqlaSolutions/NLog-Unity3D,mikkelxn/NLog,AqlaSolutions/NLog-Unity3D,Niklas-Peter/NLog,blair55/NLog,ie-zero/NLog,AndreGleichner/NLog,thomkinson/NLog,fringebits/NLog,RichiCoder1/NLog,fringebits/NLog,matteobruni/NLog,bryjamus/NLog,mikkelxn/NLog,BrandonLegault/NLog,zbrad/NLog,ie-zero/NLog,nazim9214/NLog,BrandonLegault/NLog,mikkelxn/NLog,MartinTherriault/NLog,RRUZ/NLog,MoaidHathot/NLog,michaeljbaird/NLog,rajk987/NLog,rajk987/NLog,RRUZ/NLog,thomkinson/NLog,rajk987/NLog,FeodorFitsner/NLog,hubo0831/NLog,FeodorFitsner/NLog,MoaidHathot/NLog,matteobruni/NLog,vladikk/NLog,ilya-g/NLog,rajeshgande/NLog,bhaeussermann/NLog,ajayanandgit/NLog,zbrad/NLog,blair55/NLog,thomkinson/NLog,tmusico/NLog,tohosnet/NLog,blair55/NLog,michaeljbaird/NLog,tohosnet/NLog,czema/NLog,vladikk/NLog,bjornbouetsmith/NLog,rajeshgande/NLog,hubo0831/NLog,fringebits/NLog