fixed getNextNearestExpirationTime to really search all batches, not just the 1st nonempty one
Authored by: malyvelky 2010-06-23
Parent: [r68]
Child: [r70]