display legend only if the image really exists
reactivating disabled legend test
linting
Merge pull request #465 from geoadmin/fix_463

Display legend only if the image really exists