Fixes NPE in findPrivateContactByRealId method which tries to find private messaging contact.