fix for stacktrace on empty files
Merge pull request #86 from corpaul/emptyFileFix

fix for stacktrace on empty files