Getting a NPE, the line   result = mls.submit(...) can return null, and
the code was not checking for this.
Merge pull request #908 from garvankeeley/async-uploader-nullptr

Fix null ptr exception in async uploader (introduced in Friday's merge)