Fix for exception in html report with jsfactory