Fix CMP0022 warning when no old-style property is set

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

271bf10 Fix CMP0022 warning when no old-style property is set