Update reprap.js

hanldle empty response while uploading