Fixed bug with empty lines in line reader.