Before the first time the statistics run, the statistic date is null, so...

..., I added a check for that in order to avoid the NPE that was happening on prod