Make config parsing more robust against errors