Add guard for null char* pointers and possible out parameters (ref gh-35).