Failed upload with no files succeeding causes js to error out