null check for schedule dates and events

null check for schedule dates and events