Fix nil pointer error if an error occurs in preprocessUpload()
Merge pull request #18 from wallyworld/fix-upload-npe

Fix nil pointer error if an error occurs in preprocessUpload()