Fix $statsHtml not defined error

Change-Id: I2d836c6697d940d1a4b00a905b6dc4714c02f97c