Fixed a null pointer issue involving Timeline.getEvents()