Fix unvarred variable in stats graph script

I think this might fix the graphs not displaying in IE11, although I haven't had a chance to test - certainly shouldn't hurt anyway :-)