Fixed error while editing multiple valued fields (JS error)