Additional protection for contactsDb not being open