[xctool] Fix a crash in by verifying the NSString created from the readBuffer is a non-nil object