Fix the ITestResult getInstance == null bug

Fix a small bug based on the Google group:
[testng-users] TestNG Listner method return null
https://mail.google.com/mail/u/0/#inbox/143d9d8b8a491d64