Replace bound elementvalue wit uri if related vocabulary is deleted. Refs #17687
Remove obsolete Js function