[BUGFIX] Fix layer activation in legend for non-spatial layers - Followup ff00b61
[BUGFIX] Fix layer activation in legend for non-spatial layers - Followup ff00b61

makinacorpus/lizmap-web-client,aeag/lizmap-web-client,nboisteault/lizmap-web-client,nboisteault/lizmap-web-client,makinacorpus/lizmap-web-client,nboisteault/lizmap-web-client,rldhont/lizmap-web-client,laurentj/lizmap-web-client,aeag/lizmap-web-client,laurentj/lizmap-web-client,jancelin/lizmap-web-client,jancelin/lizmap-web-client,jancelin/lizmap-web-client,makinacorpus/lizmap-web-client,laurentj/lizmap-web-client,rldhont/lizmap-web-client,rldhont/lizmap-web-client,jancelin/lizmap-web-client,aeag/lizmap-web-client,rldhont/lizmap-web-client,3liz/lizmap-web-client,3liz/lizmap-web-client,nboisteault/lizmap-web-client,laurentj/lizmap-web-client,3liz/lizmap-web-client,makinacorpus/lizmap-web-client,aeag/lizmap-web-client,jancelin/lizmap-web-client,jancelin/lizmap-web-client,3liz/lizmap-web-client,makinacorpus/lizmap-web-client,aeag/lizmap-web-client