[libcommhistory] Suppress contacts without the required address type

When selecting recent contacts for IM, we only want contacts that have IM accounts.