Fix for NPE: skip null contact uris

Fix for NPE: skip null contact uris