Fix error checking in append_string

Test: m -j
Change-Id: Ifa806d5037acb17f83cbf45712e9795d6f56152f
1 file changed