Fixing error in the php.log for statistics page when user clicks on months which do not have data.