Small raw reader fixes
* crash when accessing nonexistant file.
* memory leak when reading from file.

Addresses #1038.
Merge remote-tracking branch 'origin/fastpath'

* origin/fastpath:
  Small raw reader fixes * crash when accessing nonexistant file. * memory leak when reading from file.