Improve error recovery in parse_parameters().