Fix in Object.save() promise resolution logic