Fix "Dead nested assignment" static analyzer warning in monthFromDayInYear()