Fixed a bug with the error response entity handling code that would result in a PHP fatal if the response entity's error property was an object.