do not crash when we remove a contact for which neerby contcts are not in the same accounts. Fixes #8157