Added checks to timeline for empty datasets