Fixed bug#10074 - Error if no queue matched in DashboardEventsTicketCalendar.
Tidied.