rename should throw an error if `from` is not present in the object.
This will avoid the case of making a valid property `undefined`.