Update transform to handle docs erroneously passed to unset (#416)