Fixes NPE which prevents removing a contact from the UI.