Fix segmentation fault in 'pstore cat'

Terminate `pstore cat` on an invalid input file.