Fix possible reason for 'Invalid read of size 8' errors.

The string could be null at this point.
Merge topic 'print-CMP0022-content-conflict' into next

b78d07e Fix possible reason for 'Invalid read of size 8' errors.