Rewrote function to put display if there is a cid so it would not create...

... an error when emailing contacts from advanced search--might make more sense to remove if statement entirely but I wanted to preserve functionality if needed