Fixes NullPointerException in contact list reported by Emil Ivov.