Fix a bug in the rsdr program

When a store has a size that is an exact multiple of the record size, rsdr would throw an exception because it could accidentally try to read past the end.
Merge pull request #2821 from chrisvest/2.1-rsdr-bug

Fix a bug in the rsdr program