notmuch_database_create/open: Fix to handle NULL as documented.