[3.8] Fix #1518 Can not edit tags in metadatas settings

This fix has not been merged in 3.8 branch see  alchemy-fr/Phraseanet#693

cc @anthonycabot