Fix empty 'to_display' variable when no events to display