fix a bug in io.put, when key is None and extra.params is not empty