Avoid java.lang.ArithmeticException: / by zero in stat.
Fix stat by date if invalid date are provided should return min/max date info.
Merge branch 'develop' of github.com:geonetwork/core-geonetwork into develop