Only reject the deferred object if the upload should be prevented. Fixes #2438
Updated package version.