handle case when address is missing a country

in general the code should be defensive about object dereferencing like this. even if validation is in place for this (apparently there is insufficient validation of address data during contact import), such validation rules might change later or might need to be relaxed for specific use cases.