fix check for 0 bytes written
Merge pull request #4 from WinterMute/ftp_session_write_file_fix

fix check for 0 bytes written