Fixed error checking if local database is not configured.