Check if layer has id when layer change to activate metadata widget. Fixes #83799
Merge pull request #162 from alediator/8.5-SNAPSHOT-83799-show-metadata

Check if layer has id when layer change to activate metadata widget. Fix...