update resume_io.py

fix:check if key is None while resuming uploading!