Must check for NULL before printing OutputString. Change-Id: I7aa92cccc12598e64884a67fb959d3b9cada99c9