#52 Fixed bugs with parsing empty files

Fixed #52