Fixes for segmentation fault due to dereferencing NULL pointer
returned by clang_getCString()