Index: program/steps/mail/addcontact.inc
===================================================================
--- program/steps/mail/addcontact.inc	(revision d7344819834e469c2e5875f756f1ad973b2e06d9)
+++ program/steps/mail/addcontact.inc	(revision 3a9f7954baf92a40ee149c8d0acc3e56826945ff)
@@ -31,6 +31,7 @@
 // Get first writeable addressbook if the configured doesn't exist
 // This can happen when user deleted the addressbook (e.g. Kolab folder)
-if ($abook !== null && !is_object($CONTACTS)) {
-  $CONTACTS = $RCMAIL->get_address_book(null, true);
+if ($abook == null || !is_object($CONTACTS)) {
+  $source = reset($RCMAIL->get_address_sources(true));
+  $CONTACTS = $RCMAIL->get_address_book($source['id'], true);
 }
 
