Removes cached reference when item is destroyed.