Genex: Fix $<CONFIG> with IMPORTED targets and multiple locations.

The old code checked only that there was a LOCATION for the
specified config, but did not check whether the config actually
mapped.

Task-number: 14292
Merge topic 'fix-mapped-config-genex' into next

9c5ff8a Genex: Fix $<CONFIG> with IMPORTED targets and multiple locations.