prevent null pointer exceptions in the case that there's no date ranges available for a batch