Bug 877145 - [SMS] [regression] Carrier display in contact search / thread headers

A workaround for contact type issue. Convert the type to string every time before type comparison.