createSeriesAnnotations now exits (instead of crashing) if record count is zero