Fixed read of trailing empty line from words file.