Update reprap.js

tweaked handling of empty response while uploading (caused print hangs)