Fix bug: Unable to edit metadata if classifier is not empty

Fix the error when submitting the edit metadata form if the trove classifier list is not empty.