corrected invalid file processing when file ends with empty line. Tests was corrected
Authored by: jirout 2014-06-02
Parent: [r372]
Child: [r374]