When acceptNullYears is true, use year if present.