Check if ErrorStream is null before trying to read it.