Fix non existent file upload

Stop immediatly instead of trying to upload zero-length file to server
Merge pull request #5 from vannell/fix_non_existing_file_upload

Fix non existent file upload