In case of a guardian's sale or other transfer of any real or personal property specifically devised by a ward who was competent to make the will, but was incompetent at the time of the sale or transfer and never became competent thereafter, so that the devised property is not contained in the estate at the time of the ward's death, the devisee may, at his or her option, take the value of the property at the time of the ward's death with the incidents of a general devise or take the proceeds thereof with the incidents of a specific devise.