Add check to prevent NPE when using AgeRange, allowing null values for min and max ages when checking for dates in range.