fix single upload when data is null
Merge pull request #55 from montabou/fix-single-upload

fix single upload when data is null