Fix NaN error in uploader progress (in lib.js)