Check file object to prevent error when file has been deleted
Merge pull request #1 from akodde/master

Check file object to prevent error when file has been deleted