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

...es #83799