Ensure useful error message when negotiate response fails to parse

- #2317