Fix layer attribute form on metadata page
Handle invalid attribute form
Merge pull request #1038 from mbertrand/attribute_fix1

Fix attribute form on layer metadata page