Fixed an error on the function "reporting_get_planned_downtimes_intervals"