Fix JavaScript exception in Contacts module

Fixed calling unescapeHTML on null variables. Also fixed errors on IE7
(and possibly other versions).