Fix for #562

#562 testNG not creating HTML report
Fix NPE in XMLStringBuffer.java
Add corresponding Nullable annotations
Actual fix is here ;)