pstore: fix potential logic issue in pstore read interface