Fix issue where the return value of negotiate() may not contain a Content-Type member and is dealt with improperly.