Fix #928 by catching errors if config_list() fails