Fixed undefined return when allocating Events datasets.