Improve robustness of PDB's isError

Handle empty buffers (no error line)