Fix for NullReferenceException creating Cloud Exception

Fixed NullReferenceException that was thrown when response didn't contain headers (TFS issue 1261798)