GHS: Fix crash when GHS_NO_SOURCE_GROUP_FILE property is not defined

Refactoring in commit 36aba01223 (cmGeneratorTarget::GetProperty: return
cmProp, 2020-04-29, v3.18.0-rc1~246^2) left out a `nullptr` check.

Fixes: #20985
1 file changed