Deleted topic error

Fixing an issue related to if a person deletes a topic and then still has contact records pointing to those topics. For now, I simply used `contact.try(:topic).try(:name)`.