get_property: Fix testing ALIASED_TARGET target property (#14670)

In the case where the argument is not an ALIAS, the variable should
be set to a -NOTFOUND content.
Merge topic 'minor-cleanups' into next

8e66cbc get_property: Fix testing ALIASED_TARGET target property (#14670)