config: don't fall into an infinite loop on error path.