Fix early termination bug when reading blank lines.