fix bug 816227 - empty title on the contact details page

Has been added function to reset contact name depends on the properties that contact have. 

link to the bug in Bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=816227