in some cases the whole key failed to read from the file

I had some issues recovering keys using this script and found that sometimes about 1/2 of the file is read instead of the whole thing, the keys are then discarded for being the wrong length. This corrects that issue allowing more data to possible be recovered (maybe the 0.24 bitcoin you couldn't find was in one of those).