[Runtime] Improved ErrorHandling ConvertToMemoryStream
[Runtime] Improved ErrorHandling ConvertToMemoryStream

X-Sharp/XSharpPublic,X-Sharp/XSharpPublic,X-Sharp/XSharpPublic,X-Sharp/XSharpPublic,X-Sharp/XSharpPublic