If consistency check fails properly calculate how many records should be retrieved for refresh. Was incorrectly calculating new limit if the second retrieve was for all records (ie. limit = -1).
Authored by: b_calderwood 2012-10-16
Parent: [r6422]
Child: [r6424]